<template>
  <div class="game flexCC">
    <a href="javascript:;" @click.stop="toKLPK">
      <img src="~assets/images/kxianBtn.png">
    </a>
    <router-link to='/viewpk' @click.native="maidian('23008')">
      <img src="~assets/images/guandianBtn.png">
    </router-link>
    <a href="javascript:;" @click.stop="toMingshi">
      <img src="~assets/images/mingshiBtn.png">
    </a>
  </div>
</template>

<script>
  import sessionDAO from 'common/sessionDAO'
  const TDAPP = window.TDAPP
  export default {
    methods: {
      toKLPK () {
        window.location = 'gtjayyz://jumpfunc?funid=10018&islogin=1&needmobile=1&needShare=1&td_eventid=190802&linkurl=https://i.gtja.com/wxapp/drgs/h5/index.html?channel=jh&needShare=1&area=gldh'
        this.maidian('23007')
      },
      toMingshi () {
        window.location.href = 'gtjayyz://jumpfunc?funid=10019&roomId=1205&fromGLDH=1'
        this.maidian('23009')
      },
      maidian (id) {
        TDAPP.onEvent(id, '', {userCode: sessionDAO.getUserCode()})
        TDAPP.send()
      }
    }
  }
</script>
